
package com.platform.modules.mall.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 活动商品对应表实体
 *
 * @author
 * @date 2021-08-11 16:21:47
 */
@Data
@TableName("MALL_GOODS_TO_ACTIVITY")
public class MallGoodsToActivityEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    private String id;
    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    private String activityId;
    /**
     * 商品id
     */
    @ApiModelProperty(value = "商品id")
    private String goodsId;
    /**
     * 商品展示时间，1为周日，7为周六,用逗号“，”分割
     */
    @ApiModelProperty(value = "商品id")
    private String dayOfWeek;
    /**
     * 金额
     */
    @ApiModelProperty(value = "金额")
    private Integer price;
    /**
     *概率
     */
    @ApiModelProperty(value = "概率")
    private BigDecimal probability;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序/角度")
    private Integer sort;
    /**
     * 已领取数量
     */
    @ApiModelProperty(value = "数量")
    private Integer expendCount;

    @TableField(exist = false)
    private String goodsName;

    @TableField(exist = false)
    private String activityName;

    @ApiModelProperty(value = "白名单等级")
    private String whitelistGrade;

    @TableField(exist = false)
    private  String url;


    @TableField(exist = false)
    private  String goodsPrice;

    @TableField(exist = false)
    private  String goodsMarketPrice;
}
